import React, { useMemo } from 'react';

import SoundLibrary from 'admin/components/SoundLibrary';
import { useLocation } from 'react-router-dom';
import qs from 'query-string';
import './../style.scss';
/**
 * 通知流程-录音库页面
 */
const NotifySoundLibrary: React.FC = () => {
  // 路由location
  const location = useLocation();
  // URL查询字符串=>对象
  const query = useMemo(() => {
    return qs.parse(location.search);
  }, [location.search]);
  return (
    <div className="notify-sound-library">
      <SoundLibrary notifyFlowId={Number(query.notifyFlowId)}></SoundLibrary>
    </div>
  );
};

export default NotifySoundLibrary;
